#ifndef WORKER_H
#define WORKER_H

#include <vector>
#include <QThread>
#include "capture.h"
#include "receiver.h"

class Worker : public QThread
{
public:
    Worker();
    Worker(Capture* capture, Receiver* receiver);
    ~Worker();

    void setCapture(Capture*);
    void addReceiver(Receiver*);

protected:
    void run();

private:
    Capture* cap;
    std::vector<Receiver*> receivers;
};

#endif // WORKER_H
